//
//  ss.h
//  360Safe
//
//  Created by zhikuiyu on 14/11/3.
//  Copyright (c) 2014年 baidu. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(int, RegexState) {
    RegexStateRight                  = 0,
    RegexStateLengthToLessError      = 1,
    RegexStateLengthToMoreError      = 2,
    RegexStateChatError              = 3,
};



@interface NSString (Regex)
- (NSString *)transformToPinyin;

/*!
 *  验证手机号输入 是否正确
 */
- (RegexState)regexPhoneNumber;

/*!
 *  验证验证码输入是否正确
 */
- (BOOL)regexidenCodeNumber;

/*!
 *  验证密码格式输入是否正确
 */
- (RegexState)regexidenPsdNumber;

/**
 * @brief  昵称
 */
- (RegexState) regexidenNickname;
// 发表情输入验证

- (RegexState) regexidenSpeicalChat;

// 验证身份证
- (RegexState) regexidenIdCard;

/*!
 *  验证邮政编码
 */
- (RegexState )regexidenZipCode;

//姓名
- (RegexState) regexidenname;

+  (int)convertToInt:(NSString*)strtemp;

@end
